<template>
  <div class="container" :class="[{'isDay':isDay}]">
    <!--综合头部-->

    <!--综合内容区域左边-->
    <div class="content">

      <Main></Main>

    </div>

    <el-header>
      <NavHeader></NavHeader>
    </el-header>
    <!--综合内容区域-->
    <LeftAside style="width: 225px;min-width: 225px" >

    </LeftAside>

  </div>
</template>

<script>
  export default {
    name: "home",
    data() {
      return {
        activeIndex2: '1'
      };
    },
    computed: {

      isDay: {
        get() {
          return this.$store.state.isDay;
        },
        set(val) {
          this.$store.state.isDay = val;
        },
      },
    },
    methods: {
      handleSelect(key, keyPath) {
        console.log(key, keyPath);
      }
    }
  }
</script>

<style lang="less" scoped>



   .container {
    height: 100%;
    width: 100%;
     .nBg

  }
  .el-header{
    box-sizing: border-box;
    color: #333;
    text-align: center;
    line-height: 67px;
    height: 67px !important;
    width: 100%;
    padding: 0px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }


  .content {
    position: relative;
    top: 67px;
    left: 225px;

    width: calc(100% - 225px);
    /*height: calc(100% - 67px);*/
    .nBg

  }

   .isDay {
     .content{.dBg}

     .dBg;
   }

   @media screen and (max-width: 800px){
     .content{
       width: 100%;
       left: 0;
     }
   }


</style>
